﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
    using System.Web.Mvc;
    using UFPC.Models;

namespace UFPC.Models
{
    public class InventoryFormViewModel
    {

        public Inventory Inventory { get; private set; }
        public SelectList ProductList { get; private set; }

        public InventoryFormViewModel(Inventory inventory, IList<Product> productList)
        {
            Inventory = inventory;
            ProductList = new SelectList(productList.ToList(), "ProductId", "Name");
        }

    }
}